package com.marktotop.converter;

import com.marktotop.entity.system.Department;
import com.marktotop.vo.system.DepartmentVO;
import org.springframework.beans.BeanUtils;

/**
 * DepartmentConverter
 *
 * @author WXLD
 * @Data 2021/7/12
 * @Since 1.0
 */
public class DepartmentConverter {

    /**
     * 转vo
     * @return
     */
    public static DepartmentVO converterToDepartmentVO(Department department){
        DepartmentVO departmentVO = new DepartmentVO();
        BeanUtils.copyProperties(department,departmentVO);
        return departmentVO;
    }
}
